libxl: do not use tap disk backend other than for raw and vhd
authorIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 8 Jul 2011 17:35:24 +0000 (18:35 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 8 Jul 2011 17:35:24 +0000 (18:35 +0100)
commit643b106b408b081b51040fc96a6ea650059203b9
tree08feafae59f66b4e70d4438c8122efce326e261a
parentbd86a4611da8a582df4f4aaf915a264445f80a4b
libxl: do not use tap disk backend other than for raw and vhd

tap does not support qcow/qcow2; update disk_try_backend accordingly.

Break out the "backend not suitable for this format" message so it can
be reused.  Remove now-redundant reporting from
libxl_device_disk_local_attach and replace with abort().

Reported-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl_device.c